﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Netfraction.Network.Protocol.BASE.Factory
{
    public class FactoryPAS : ProtocolMessageFactory
    {
        public enum ParameterEnum : int
        {
            Data = 1,
        }

        public override ProtocolMessage Create(ProtocolMessage.MessageTypeEnum messageType, Dictionary<int, object> parameters)
        {
            ProtocolMessage proto = new ProtocolMessage(messageType, ProtocolFeatureBASE.FeatureActions.ActionPAS);
            // there's only one parameter
            proto.Parameters.Add(new ProtocolParameter(parameters[(int)ParameterEnum.Data].ToString()));

            return proto;
        }
    }
}
